import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

Vue.prototype.$axios = axios
Vue.prototype.$store = store
Vue.config.productionTip = false

axios.interceptors.request.use(config => {
    // 添加token请求头
    config.headers.token = sessionStorage.getItem("token");
    return config;
})

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')